/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package es.tabla.activity;

import android.app.Activity;
import android.os.Bundle;
//import android.widget.CalendarView;
import android.widget.ListView;
import es.tabla.ejercicio.EjerciciosAdapter;
import es.tabla.error.ControlErrores;
import es.tabla.utility.xml.ParserXML;

/**
 *
 * @author Chema
 */
public class PantallaTabla extends Activity {

    ListView listaEjercicio;
    //CalendarView cv;

    /**
     * Called when the activity is first created.
     */
    @Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        incializar();


    }

    private void incializar() {
        try {
            setContentView(R.layout.tabla);

            listaEjercicio = (ListView) findViewById(R.id.list);
            listaEjercicio.setAdapter(new EjerciciosAdapter(this, ParserXML.recuperarEjerciciosDelDia()));
            //cv = (CalendarView) findViewById(R.id.calendario);
            
        } catch (Exception e) {
            ControlErrores.depurar(this, e);
        }


    }
}
